package com.example.springapp.service;

import com.example.springapp.entity.UserInfo;
import com.example.springapp.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public int getUserCount(){
        System.out.println("userMapper: " + userMapper);
        int i = userMapper.getCount();
        return i;
    }
}
